package org.hcyspartnoc.demo.pojo.dto.system;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hcyspartnoc.demo.common.core.PageBean;
import org.hibernate.validator.constraints.Length;
import org.springframework.web.bind.annotation.RequestParam;


@Data
@NoArgsConstructor
public class SysRoleQueryPageDto {

    @NotNull
    @Min(value = 1, message = "当前页不能小于1")
     private int current;
    @Min(value = PageBean.MIN_PAGE_SIZE, message = "每页大小" + PageBean.MIN_PAGE_SIZE + "-" + PageBean.MAX_PAGE_SIZE)
    @Max(value = PageBean.MAX_PAGE_SIZE, message = "每页大小" + PageBean.MIN_PAGE_SIZE + "-" + PageBean.MAX_PAGE_SIZE)
    @NotNull
     private int pageSize;
    @Length(max = 10, message = "名称长度0-10")
     private String name;
     private String description;

     private String startTime;
    private String endTime;
    private String sortField;
    private String sortOrder;
}
